package com.csst.business.service.impl;

import java.util.List;

import com.csst.business.dao.INewsDao;
import com.csst.business.model.TNews;
import com.csst.business.service.INewsService;
import com.csst.popular.bean.message.NewsMessage.News;

public class NewsServiceImpl implements INewsService{
	private INewsDao newsDao;

	public INewsDao getNewsDao() {
		return newsDao;
	}

	public void setNewsDao(INewsDao newsDao) {
		this.newsDao = newsDao;
	}

	@Override
	public void saveDate(TNews news) {
		// TODO Auto-generated method stub
		newsDao.saveDate(news);
	}

	@Override
	public List<TNews> getNewslist() {
		// TODO Auto-generated method stub
		return newsDao.getNewslist();
	}

	@Override
	public int getOrderTotle() {
		// TODO Auto-generated method stub
		return newsDao.getOrderTotle();
	}

	@Override
	public List<TNews> getAllOnlineList(int startNum, int endNum) {
		// TODO Auto-generated method stub
		return newsDao.getAllOnlineList(startNum,endNum);
	}

	@Override
	public TNews getNewsById(String id) {
		// TODO Auto-generated method stub
		return newsDao.getNewsById(id);
	}

	@Override
	public void updateDate(TNews news) {
		// TODO Auto-generated method stub
		newsDao.updateDate(news);
	}

	@Override
	public boolean deleteNewsById(String id) {
		// TODO Auto-generated method stub
		return newsDao.deleteNewsById(id);
	}
}
